_spamstop = 0;
while {true} do {
	_towerprox = player distance device_closed;
	
	if ((_towerprox < 200)&&(_spamstop == 0)) then {
		radioTowerMarker = createMarker ["radioTowerMarker", position player];
		"radioTowerMarker" setMarkerText "Radio Tower";
		"radioTowerMarker" setMarkerSize [0.5, 0.5];
		"radioTowerMarker" setMarkerPos getPos device_closed;
		"radioTowerMarker" setMarkerShape "ICON";
		"radioTowerMarker" setMarkerType "hd_destroy";
		"radioTowerMarker" setMarkerColor "ColorRed";
		_spamstop = 1;
	};
	if (!alive device_open) exitwith {
		deleteMarker radioTowerMarker;
	
		radioTowerDestroyed = createMarker ["radioTowerDestroyed", position player];
		"radioTowerDestroyed" setMarkerText "Radio Tower (Destroyed)";
		"radioTowerDestroyed" setMarkerSize [0.5, 0.5];
		"radioTowerDestroyed" setMarkerPos getPos device_open;
		"radioTowerDestroyed" setMarkerShape "ICON";
		"radioTowerDestroyed" setMarkerType "hd_destroy";
		"radioTowerDestroyed" setMarkerColor "ColorBlack";
		_spamstop = 0;
	};
sleep 5;
};

